<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<div>
	<a href="javascript:void(0)" class="easyui-linkbutton" onclick="importAll()">一键提交商品数据到索引库</a>
</div>
<script type="text/javascript">
//通过ajax发送请求
	function importAll() {
		$.ajax({
			url:"/index/importAll",
			type:"GET",
			success:function(data){
				if(data.status ==200){
					alert("导入成功");
				}else {
					alert("导入失败");
				}
			}
		});
	}
</script>

